{% extends "layouts/base.phtml" %}

{% block cssInclude %}
{{ stylesheetLink("static/js/iCheck/skins/square/blue.css") }}
{% endblock %}

{% block content %}

<!-- page heading start-->
<div class="page-heading">
    添加标签
</div>
<!-- page heading end-->

<!--body wrapper start-->
<div class="wrapper">
    <form class="form-horizontal" role="form" id="addForm" action="/tag/doadd" method="post">
        <div class="form-group">
            <label for="name" class="col-lg-1 col-sm-1 control-label">标签名：</label>
            <div class="col-lg-2">
                <input type="text" class="form-control" name="tag_name">
            </div>
        </div>
        <div class="form-group">
            <label for="password" class="col-lg-1 col-sm-1 control-label">标签类型：</label>
            <div class="col-lg-2 icheck">
                <div class="square-blue single-row">
                    <div class="radio">
                        <input type="radio"  name="tag_type" value="1" checked>
                        <label>淘宝</label>
                    </div>
                    <div class="radio">
                        <input type="radio"  name="tag_type" value="2">
                        <label>京东</label>
                    </div>
                </div>
            </div>
        </div>
        <div class="form-group">
            <div class="col-lg-2 col-sm-2 col-lg-offset-1 col-sm-offset-1">
                <button type="button" class="btn btn-primary" onclick="add()">提交</button>
            </div>
        </div>
    </form>
</div>

<!-- Modal -->
<div aria-hidden="true" aria-labelledby="myModalLabel" role="dialog" tabindex="-1" id="myModal" class="modal fade">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button aria-hidden="true" data-dismiss="modal" class="close" type="button">×</button>
                <h4 class="modal-title">提示信息</h4>
            </div>
            <div class="modal-body">

            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-success" data-dismiss="modal">确定</button>
            </div>
        </div>
    </div>
</div>

{% endblock %}

{% block jsInclude %}
{{ javascript_include("static/js/tag-add.js") }}
{% endblock %}